//
//  ZMLanguageSetingCell.m
//  dudu_oc_master
//
//  Created by mac on 2020/3/12.
//  Copyright © 2020 Shawn Ma. All rights reserved.
//

#import "TJLanguageSetingCell.h"

@interface TJLanguageSetingCell()

@property (weak, nonatomic) UILabel *nameLabel;
@property (weak, nonatomic) UIImageView *arrowImageView;
 
@end

@implementation TJLanguageSetingCell

- (void)settingSubView {
    
    UILabel *nameLabel = [UILabel lableWithSuperView:self.contentView font:UIFont_Px(16) color:UIColor.blackColor title:@"" textAlignment:NSTextAlignmentLeft];
    [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.offset(0);
        make.left.offset(16);
    }];
 
    _nameLabel = nameLabel;
 
}
 
- (void)setText:(NSString *)text {
    _text = text;
    _nameLabel.text = text;
}

- (void)setTj_isSelect:(BOOL)tj_isSelect {
    _tj_isSelect = tj_isSelect;
    
    if (_tj_isSelect) {
        self.accessoryType = UITableViewCellAccessoryCheckmark;
    } else {
        self.accessoryType = UITableViewCellAccessoryNone;
    }
}

@end
